package com.jiangjiang.eshop.auth.convert;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.auth.domain.RoleEntity;
import com.jiangjiang.eshop.auth.dto.RoleDTO;
import com.jiangjiang.eshop.auth.dto.RoleSaveDTO;
import org.mapstruct.Mapper;

/**
 * @ClassName RoleConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/6/17 21:49
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface RoleConvert {

    Page<RoleDTO> convertPageEntity2DTO(Page<RoleEntity> page);

    RoleDTO convertEntity2DTO(RoleEntity entity);

    RoleEntity convertSaveDTO2Entity(RoleSaveDTO dto);
}
